import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
import { getWeekMonthQuarterYear } from '/@/utils';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '创建日期',
    align: "center",
    dataIndex: 'createTime'
  },
  {
    title: '蓝客帝用户id',
    align: "center",
    dataIndex: 'sourceMemberId'
  },
  {
    title: '微信小程序id',
    align: "center",
    dataIndex: 'openid'
  },
  {
    title: '头像',
    align: "center",
    dataIndex: 'avatar',
    customRender: render.renderImage,
  },
  {
    title: '会员等级 1.青铜2.白银 3.黄金',
    align: "center",
    dataIndex: 'level_dictText'
  },
  {
    title: '昵称',
    align: "center",
    dataIndex: 'nickname'
  },
  {
    title: '介绍人id',
    align: "center",
    dataIndex: 'recommendId'
  },
  {
    title: '佣金',
    align: "center",
    dataIndex: 'commission'
  },
  {
    title: '上月推广',
    align: "center",
    dataIndex: 'lastMonthExtension'
  },
  {
    title: '本月推广',
    align: "center",
    dataIndex: 'currentMonthExtension'
  },
  {
    title: '可提现金额',
    align: "center",
    dataIndex: 'withdrawMoney'
  },
];

// 高级查询数据
export const superQuerySchema = {
  createTime: {title: '创建日期',order: 0,view: 'datetime', type: 'string',},
  sourceMemberId: {title: '蓝客帝用户id',order: 1,view: 'text', type: 'string',},
  openid: {title: '微信小程序id',order: 2,view: 'text', type: 'string',},
  avatar: {title: '头像',order: 3,view: 'image', type: 'string',},
  level: {title: '会员等级 1.青铜2.白银 3.黄金',order: 4,view: 'number', type: 'number',dictCode: 'member_level',},
  nickname: {title: '昵称',order: 5,view: 'text', type: 'string',},
  recommendId: {title: '介绍人id',order: 6,view: 'link_table', type: 'string',},
  commission: {title: '佣金',order: 8,view: 'number', type: 'number',},
  lastMonthExtension: {title: '上月推广',order: 9,view: 'number', type: 'number',},
  currentMonthExtension: {title: '本月推广',order: 10,view: 'number', type: 'number',},
  withdrawMoney: {title: '可提现金额',order: 11,view: 'number', type: 'number',},
};
